<meta charset="UTF-8">
<style>
    body{
        background:black url(game_bg_2_hd.jpg) no-repeat center top;
    }
    #fish{
        position:absolute;
        left:20px;
        top:20px;
        width:166px;
        height:183px;
        background:url(fish9.png) 0px 0px;
    }
</style>
<div id="fish"></div>
<script>
    var x = 20;

    var bgy = 0;

    //fish.style.transform = "rotate(30deg)";

    function pao(){
        x = x + 5;
        fish.style.left = x;
        bgy = bgy - 183;
        fish.style.background = "url(fish9.png) 0px "+bgy+"px";
        if(bgy==-1281){
            bgy = 0;
        }
    }
    setInterval(pao,100);
</script>




